package com.example.nutritionmanager.api

import com.example.nutritionmanager.bodys.requestBodys.LoginRequest;
import com.example.nutritionmanager.bodys.responseBodys.LoginResponse
import com.example.nutritionmanager.bodys.responseBodys.UserProfileResponse

import retrofit2.Call;
import retrofit2.Response
import retrofit2.http.Body;
import retrofit2.http.GET
import retrofit2.http.POST;

interface UserService {

    @POST("auth/login")
    suspend fun login(@Body loginRequest: LoginRequest): Response<LoginResponse>

    @GET("user/me")
    suspend fun getUserProfile(): Response<UserProfileResponse>
}